package com.sixth.system.service;/**
 * @author 633yh
 * @version 1.0
 */

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sixth.core.entity.News;
import com.sixth.core.vo.R;
import com.sixth.system.vo.NewsVo;

import java.util.List;

/**
 * @author     ：Stu YH
 * @date       ：Created in 2024/8/21 9:35
 * @description：
 * @modified By：
 * @version:
 */
public interface NewsService {
    R<Page<News>> listByPage(NewsVo newsVo);

    boolean addUpdate(News news);

    R delete(Long newsId);

    R<List<News>> listAllNews();

    R<News> getNewsByNewsId(Long newsId);
}